#define  _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void TestSL1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushFront(&s, 5);

	SLPrint(&s);

	SLPopBack(&s);
	SLPopBack(&s);
	SLPopBack(&s);

	SLPrint(&s);


	SLDestory(&s);
}

void TestSL2()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 7);
	SLPushBack(&s, 8);
	SLPushBack(&s, 9);
	SLPushBack(&s, 10);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	int pos = SLFind(&s, 5);
	SLModify(&s, pos, 12);
	SLPrint(&s);

	SLDestory(&s);
}

int main()
{
	TestSL2();

	return 0;
}